// 页面load统计时间
export default function observerLoad() {
    window.addEventListener('pageShow', function (event) {
        requestAnimationFrame(() => {
            ['load', 'DOMContentLoaded'].forEach((type) => {
                const reportData = {
                    type: 'preformance',
                    subType: type,
                    pageUrl: window.location.href,
                    startTime: performance.now() - event.timeStamp,
                };
            });
        }, true);
    });
}
